#include<stdio.h>
#define N 10
void shuchu(int a[], int n)
{
	int i;
	printf("The elements is :\n");
	for (i = 0; i < n; i++)
		printf("%10d", a[i]);
	printf("\n");
}
int qiumin(int a[], int n)
{
	int min, i;
	min = a[0];
	for (i = 1; i < n; i++)
	{
		if (a[i] <min) min = a[i];
		return min;
	}
}
int main(void)
{
	int n, i,min;
	int number[N] = { 0 };
	do
	{
		printf("Please a number\n");
			scanf_s("%d", &n);
	} while (n <= 0 || n > N);
	printf("Please  input %d elements", n);
	for (i = 0; i < n; i++)
	{
		scanf_s("%d", &number[i]);
     }
	shuchu(number, n);
	min= qiumin(number, n);
	printf("The max element is %d", min);
}

